package com.zzyl.nursing.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMember;
import com.zzyl.nursing.dto.DeviceDataListByDayRequestDto;
import com.zzyl.nursing.dto.DevicePropertyStatusRequestDto;
import com.zzyl.nursing.dto.UserLoginRequestDto;
import com.zzyl.nursing.vo.LoginVo;
import com.zzyl.nursing.vo.DeviceDataListByDayRequestVo;
import com.zzyl.nursing.vo.DeviceDataListByWeekRequestVo;
import com.zzyl.nursing.vo.ServicePropertiesVo;
import com.zzyl.nursing.dto.AddElderRequestDto;
import com.zzyl.nursing.vo.FamilyElderListVo;
import com.zzyl.nursing.vo.MemberElderVo;

/**
 * 老人家属Service接口
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public interface IFamilyMemberService extends IService<FamilyMember>
{

    /**
     * 小程序登录
     * @param dto
     * @return
     */
    LoginVo login(UserLoginRequestDto dto);

    /**
     * 查询健康数据（新版）
     * @param iotId
     * @return
     */
    List<ServicePropertiesVo> queryServiceProperties(String iotId);

    /**
     * 查询健康数据（旧版）
     * @param dto
     * @return
     */
    List<ServicePropertiesVo> queryDevicePropertyStatus(DevicePropertyStatusRequestDto dto);

    /**
     * 按天统计查询指标数据
     * @param dto
     * @return
     */
    List<DeviceDataListByDayRequestVo> queryDeviceDataListByDay(DeviceDataListByDayRequestDto dto);

    /**
     * 按周统计查询指标数据
     * @param dto
     * @return
     */
    List<DeviceDataListByWeekRequestVo> queryDeviceDataListByWeek(DeviceDataListByDayRequestDto dto);

    /**
     * 添加老人
     * @param dto
     * @return
     */
    Boolean addElder(AddElderRequestDto dto);

    /**
     * 查询家人列表
     * @return
     */
    List<FamilyElderListVo> getMyElderList();

    /**
     * 分页查询家人列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<MemberElderVo> getMyElderListByPage(Integer pageNum, Integer pageSize);
}
